package com.monika.main.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author whh
 * @Date: 2023/04/14/ 23:04
 * @description
 */
public interface IBaseDao<T,K> extends BaseMapper<T> {

    /**
     * 根据查询条件分页查询
     * @param condition
     * @param page
     * @return
     */
    List<T> queryByCondition(@Param("condition") K condition, Page<T> page);
}
